package com.tubi.LocalDateTime;

import java.time.LocalDateTime;

public class LocalDateTime1 {
    public static void main(String[] args) {

        /*
        public static LocalDateTime now()获取当前系统时间

        public static LocalDateTime of  (年, 月 , 日, 时, 分, 秒)使用指定年月日和时分秒初始化一个LocalDateTime对象
         */
        LocalDateTime now = LocalDateTime.now();
        System.out.println(now);

        LocalDateTime of = LocalDateTime.of(2020, 12, 12, 12, 12, 12);
        System.out.println(of);



    }
}
